// vite.config.ts
import { defineConfig } from "file:///D:/project/driving-school/driving-training-admin/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/project/driving-school/driving-training-admin/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import viteCompression from "file:///D:/project/driving-school/driving-training-admin/node_modules/vite-plugin-compression/dist/index.mjs";
import eslintPlugin from "file:///D:/project/driving-school/driving-training-admin/node_modules/vite-plugin-eslint/dist/index.mjs";
var __vite_injected_original_dirname = "D:\\project\\driving-school\\driving-training-admin";
var vite_config_default = defineConfig({
  base: "/",
  plugins: [
    vue(),
    viteCompression({ verbose: true, disable: false, threshold: 1025, algorithm: "gzip", ext: ".gz" }),
    eslintPlugin({
      include: ["src/**/*.ts", "src/**/*.vue", "src/*.ts", "src/*.vue"],
      cache: false
    })
  ],
  resolve: {
    alias: {
      "@": resolve(__vite_injected_original_dirname, "src")
    }
  },
  server: {
    host: "10.11.171.4",
    port: 5175,
    https: false,
    open: true,
    proxy: {
      "^/api": {
        target: "http://10.100.3.157:20001",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, "")
      }
    }
  },
  build: {
    target: "modules",
    // 清除console和debugger
    terserOptions: {
      compress: {
        drop_console: true,
        drop_debugger: true
      }
    },
    rollupOptions: {
      output: {
        //配置这个是让不同类型文件放在不同文件夹，不会显得太乱
        chunkFileNames: "js/[name]-[hash].js",
        entryFileNames: "js/[name]-[hash].js",
        assetFileNames: "[ext]/[name]-[hash].[ext]",
        manualChunks(id) {
          if (id.includes("node_modules")) {
            return id.toString().split("node_modules/")[1].split("/")[0].toString();
          }
        }
      }
    },
    // outDir: 'dist/decisionAnalysis', //指定输出路径
    assetsDir: "",
    // 指定生成静态资源的存放路径
    minify: "terser",
    // 混淆器，terser构建后文件体积更小
    emptyOutDir: true
    //打包前先清空原有打包文件
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5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